package chapter17;

import net.mindview.util.CollectionData;
import net.mindview.util.RandomGenerator;

import java.util.ArrayList;
import java.util.HashSet;

/**
 * Created by VIC.Huang on 2017/2/7.
 * Using the Generators defined in the Arrays chapter.
 */
public class CollectionDataGeneration {
    public static void main(String[] args) {
        System.out.println(
                new ArrayList<String>(
                        CollectionData.list(new RandomGenerator.String(9), 10)
                )
        );
        System.out.println(
                new HashSet<Integer>(
                        new CollectionData<Integer>(new RandomGenerator.Integer(), 10)
                )
        );
    }
}
